﻿@model List<BDShop.Entities.Slider>
@using BDShop.Configuration

<section class="slider-wrapper">
    <div id="slideshow" class="nivoSlider">
        @foreach (var slider in Model)
        {
            <a class="nivo-imageLink" href="@slider.Link">
                <img class="lazy" data-original="@Path.Combine(BDShopConfiguration.Storage.ImageSliderPath, slider.Image)" src="@Path.Combine(BDShopConfiguration.Storage.ImageSliderPath, slider.Image)" alt="@slider.Name" /></a>
        }
    </div>
</section>
<script type="text/javascript"><!--
    $(document).ready(function() {
        $('#slideshow').nivoSlider();
    });
    --></script>
